package com.woniuxy.dr_mall.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * 自定义jwtToken
 *
 * @author 杨耀
 */
public class JwtToken implements AuthenticationToken {
    private String jwt;
    private String reqUrl;

    public JwtToken(String jwt,String reqUrl){
        this.jwt=jwt;
        this.reqUrl=reqUrl;
    }
    @Override
    public Object getPrincipal() {
        return jwt;
    }

    public String getReqUrl(){
        return reqUrl;
    }

    @Override
    public Object getCredentials() {
        return jwt;
    }
}
